﻿1
00:00:00,240 --> 00:00:06,870
‫Filesystem commands of the interpreter are similar to the Linux Shell commands, Cat is used to read

2
00:00:06,870 --> 00:00:08,760
‫the content of the text files.

3
00:00:09,270 --> 00:00:14,700
‫Well, you can use it with a binary files as well, but you'll see meaningless characters then.

4
00:00:16,080 --> 00:00:22,320
‫CD is to change directory if you want to change the location of the local system, which is calling

5
00:00:22,320 --> 00:00:22,740
‫for me.

6
00:00:22,920 --> 00:00:24,960
‫You can use LCD instead.

7
00:00:26,330 --> 00:00:32,840
‫Download and upload commands are not similar to the Linux Shell commands, these commands are used to

8
00:00:32,840 --> 00:00:37,040
‫upload a file to the victim or to download a file from the victim.

9
00:00:38,250 --> 00:00:45,840
‫And it opens a text editor to edit the specified file, it looks like the editor of Linux Systems.

10
00:00:47,150 --> 00:00:50,420
‫Ellis is to list the files of the victim.

11
00:00:51,740 --> 00:00:55,430
‫Now, M.K. Dyax is to create a directory.

12
00:00:56,320 --> 00:01:00,100
‫M.V. is to move a file from one folder to another.

13
00:01:00,490 --> 00:01:01,210
‫I'll give you a hint.

14
00:01:01,360 --> 00:01:03,730
‫You can use this command to rename a file.

15
00:01:04,750 --> 00:01:12,070
‫TWD is to print working directory of the victim, if you'd like to see the current location of the local

16
00:01:12,070 --> 00:01:15,010
‫system, you can use l.P W.D. instead.

17
00:01:16,440 --> 00:01:20,130
‫Our aim is to remove a specified file.

18
00:01:21,570 --> 00:01:28,920
‫Our MDR removes specified directory now, as far as I can remember, you cannot remove a folder with

19
00:01:28,920 --> 00:01:30,660
‫this command unless it's empty.

20
00:01:32,060 --> 00:01:39,800
‫Search is strange here, it's used to search files in the victims file system, there are several commands

21
00:01:39,800 --> 00:01:43,370
‫with different names in Linux, Shell and Interpretor.

22
00:01:43,370 --> 00:01:46,370
‫You can use search command to find a file in the victim's system.

23
00:01:47,390 --> 00:01:54,170
‫And if you remember, MSF console has a search command which is used to find the module's exploit post

24
00:01:54,170 --> 00:02:01,150
‫module's, etc. So do not confuse Interpretor Search Command, which has a totally different purpose.

25
00:02:03,690 --> 00:02:06,300
‫Let's see the filesystem commands in action.

26
00:02:07,860 --> 00:02:12,000
‫So as you've recognized by now, I have my interpreter session in Colly.

27
00:02:13,110 --> 00:02:22,230
‫TWD tells me the working directory on the victim and we are at the root of the partition see l.P W.D.

28
00:02:22,230 --> 00:02:27,060
‫shows the working directory of the local system and this example, it's Colly.

29
00:02:27,690 --> 00:02:30,120
‫We're on the desktop of the user.

30
00:02:31,300 --> 00:02:37,600
‫ALS is used a list of files and folders inside the working directory here at the root of the C.

31
00:02:38,660 --> 00:02:47,000
‫So we can change the current location using the CD command, I'll go to Windows Folder TWD to verify

32
00:02:47,000 --> 00:02:50,000
‫the location, you know, working directory changed.

33
00:02:51,200 --> 00:02:57,410
‫KD with a double dot brings us one folder up and we are again in the room to see.

34
00:02:58,320 --> 00:02:59,820
‫So let's create a new folder.

35
00:03:00,850 --> 00:03:03,700
‫New dirt using the mkdir command.

36
00:03:06,100 --> 00:03:10,120
‫US to list the files and folders, New Dirr is here, is expected.

37
00:03:11,190 --> 00:03:13,950
‫Go inside the new Dürer using the CD command.

38
00:03:15,770 --> 00:03:21,530
‫So I'm going to copy the text file located on the desktop of Colly into the new Dir folder of the victim.

39
00:03:22,870 --> 00:03:29,080
‫So I'll use the upload command for this purpose, the first parameter is the Feilding covid.

40
00:03:32,270 --> 00:03:36,770
‫And the second parameter is the location on the victim's machine for copying.

41
00:03:37,250 --> 00:03:44,050
‫Now don't forget to put the double backslash in the path, so let's see if it's really uploaded unless.

42
00:03:44,360 --> 00:03:44,950
‫Yes.

43
00:03:44,960 --> 00:03:51,380
‫And the file is here so we can see the contents of the file with the cat come in.

44
00:03:52,720 --> 00:04:00,100
‫I'll go back to the root of see again now I want to copy the audio exact bat file from the victim to

45
00:04:00,100 --> 00:04:05,080
‫the local system, Colly, so we can use the download command for this purpose.

46
00:04:05,530 --> 00:04:07,960
‫The first parameter is the file being copy.

47
00:04:10,040 --> 00:04:13,040
‫And the second parameter is the location to put the file.

48
00:04:13,940 --> 00:04:17,630
‫And I'll copy the file into the desktop of the user.

49
00:04:18,560 --> 00:04:22,940
‫OK, so here's the file, double click to Open, well, it's empty.

50
00:04:24,060 --> 00:04:32,250
‫This file is executed at the beginning of each boot, so if I call my back door here, I may have a

51
00:04:32,250 --> 00:04:34,420
‫persistent back door on the machine, don't I?

52
00:04:35,130 --> 00:04:36,720
‫I mean, you're the ethical hackers.

53
00:04:36,930 --> 00:04:38,790
‫You should always think in this way, right?

54
00:04:39,840 --> 00:04:47,160
‫So let's try to delete the new Dir folder, you know, that we put a file in it so the folder is not

55
00:04:47,160 --> 00:04:52,380
‫empty, but I want to see whether we can delete the folder when it's not empty.

56
00:04:53,810 --> 00:04:55,820
‫Using the removed directory command.

57
00:04:57,750 --> 00:05:00,660
‫Yes, the directory has been deleted.

58
00:05:02,530 --> 00:05:09,250
‫Unless let's use the search function to find a file on the victim's system, so I'll search, for example,

59
00:05:09,550 --> 00:05:11,220
‫characteristic file.

60
00:05:11,380 --> 00:05:11,790
‫Oops.

61
00:05:12,640 --> 00:05:15,550
‫We have to specify the file with an F parameter.

62
00:05:16,710 --> 00:05:18,390
‫Now, here are the results.

